import type {ColorTheme, EgBtSize, EgBtSizeObject} from "./config.d.ts";

// 颜色主题 SIZE相关类
class EgTheme {
    ColorThemes: ColorTheme = {
        Primary: "#1e9fff",
        Success: "#1e9",
        Danger: "#ee0b0b",
        Warning: "#f16b21",
        Info: "#ececec"
    }
    themeList: string[] = ["primary", "success", "danger", "warning", "info"]

    SizeList: string[] = ["small", "medium", "large"]



    constructor() {
        // this.initUIThemes()
    }

    initUIThemes() {
        for (const key in this.ColorThemes) {
            document.documentElement.style.setProperty(`--${key.toLowerCase()}`, this.ColorThemes[key])
        }
    }


}

export default new EgTheme()
